<?php
/**
 * Created by JetBrains PhpStorm.
 * User: patch
 * Date: 17.10.12
 * Time: 16:22
 * To change this template use File | Settings | File Templates.
 */
?>
<?php if($element['#view_mode'] == 'teaser') : ?>
<?php  foreach($items as $key => $image) : ?>
  <li class="span3" xmlns="http://www.w3.org/1999/html">
    <a class="thumbnail" href="/node/<?php print $element['#object']->nid; ?>">
      <?php print theme('image_formatter', $image); ?>
      <!--    <h3>Thumbnail label</h3>-->
<!--      <p>--><?php //print $element['#object']->title; ?><!--</p>-->
    </a>
  </li>
  <?php endforeach; ?>

<?php else: ?>
<?php  foreach($items as $key => $image) : ?>
  <div class="row">
    <div class="span9">

      <?php print theme('image_formatter', $image); ?>
      <!--    <h3>Thumbnail label</h3>-->
      <p><?php print $element['#object']->title; ?></p>
    </div>
  </div>
  <?php endforeach; ?>
<?php endif; ?>


